package org.jeecg.modules.cosmetic.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import org.jeecg.modules.cosmetic.entity.TToxicologicalWhiten;
import org.jeecg.modules.cosmetic.mapper.TToxicologicalWhitenMapper;
import org.jeecg.modules.cosmetic.model.dto.ToxWhitenDTO;
import org.jeecg.modules.cosmetic.service.ITToxicologicalWhitenService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 毒理数据库美白清单表 服务实现类
 * </p>
 *
 * @author lq
 * @since 2024-02-29 13:57:48
 */
@DS("cosmetic-datasource")
@Service
public class TToxicologicalWhitenServiceImpl extends ServiceImpl<TToxicologicalWhitenMapper, TToxicologicalWhiten> implements ITToxicologicalWhitenService {

    @Resource
    private TToxicologicalWhitenMapper toxicologicalWhitenMapper;

    @Override
    public List<ToxWhitenDTO> getListByToxId(Long id) {
        return toxicologicalWhitenMapper.getListByToxId(id);
    }
}
